﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ACPanel/AdminPage.master" AutoEventWireup="true"
    CodeFile="HomeAdmin.aspx.cs" Inherits="ACPanel_HomeAdmin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript" src="../js/jquery-1.10.2.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!-- thong tin header -->
    <div class="row">
        <div class="col-lg-12">
            <h1>
                Bảng điều khiển <small>Theo dõi các sự kiện mới xảy ra trên hệ thống từ ngày hôm qua
                    và hôm nay.</small></h1>
            <ol class="breadcrumb">
                <li class="active"><i class="fa fa-desktop"></i> Bảng điều khiển</li>
            </ol>
        </div>
    </div>
    <!-- end thong tin header -->
    <!-- Cac canh bao ve he thong -->
    <div class="row">
        <div class="col-lg-3">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-6">
                            <i class="fa fa-github fa-5x"></i>
                        </div>
                        <div class="col-xs-6 text-right">
                            <p class="announcement-heading">
                                456</p>
                            <p class="announcement-text">
                                Lượt xem</p>
                        </div>
                    </div>
                </div>
                <a href="#">
                    <div class="panel-footer announcement-bottom">
                        <div class="row">
                            <div class="col-xs-6">
                                Xem chi tiết
                            </div>
                            <div class="col-xs-6 text-right">
                                <i class="fa fa-arrow-circle-right"></i>
                            </div>
                        </div>
                    </div>
                </a>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="panel panel-warning">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-6">
                            <i class="fa fa-gift fa-5x"></i>
                        </div>
                        <div class="col-xs-6 text-right">
                            <p class="announcement-heading">
                                12</p>
                            <p class="announcement-text">
                                Tour mới</p>
                        </div>
                    </div>
                </div>
                <a href="#">
                    <div class="panel-footer announcement-bottom">
                        <div class="row">
                            <div class="col-xs-6">
                                Xem chi tiết
                            </div>
                            <div class="col-xs-6 text-right">
                                <i class="fa fa-arrow-circle-right"></i>
                            </div>
                        </div>
                    </div>
                </a>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="panel panel-danger">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-6">
                            <i class="fa fa-tasks fa-5x"></i>
                        </div>
                        <div class="col-xs-6 text-right">
                            <p class="announcement-heading">
                                18</p>
                            <p class="announcement-text">
                                Lượt đặt tour</p>
                        </div>
                    </div>
                </div>
                <a href="#">
                    <div class="panel-footer announcement-bottom">
                        <div class="row">
                            <div class="col-xs-6">
                                Xem chi tiết
                            </div>
                            <div class="col-xs-6 text-right">
                                <i class="fa fa-arrow-circle-right"></i>
                            </div>
                        </div>
                    </div>
                </a>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-6">
                            <i class="fa fa-comments fa-5x"></i>
                        </div>
                        <div class="col-xs-6 text-right">
                            <p class="announcement-heading">
                                56</p>
                            <p class="announcement-text">
                                Liên hệ mới</p>
                        </div>
                    </div>
                </div>
                <a href="#">
                    <div class="panel-footer announcement-bottom">
                        <div class="row">
                            <div class="col-xs-6">
                                Xem chi tiết
                            </div>
                            <div class="col-xs-6 text-right">
                                <i class="fa fa-arrow-circle-right"></i>
                            </div>
                        </div>
                    </div>
                </a>
            </div>
        </div>
    </div>
    <!-- /.row ket thuc canh bao he thong -->
    <!-- theo doi cac thành viên trong ban quản trị -->
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <i class="fa fa-bar-chart-o"></i> Nhật ký truy cập vào trang Quản trị</h3>
                </div>
                <div class="panel-body">
                    <asp:GridView CssClass="table table-bordered" ID="gv" DataKeyNames="Id" runat="server"
                        CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="10" AllowPaging="true"
                        PagerSettings-Position="TopAndBottom" OnPageIndexChanging="gv_PageIndexChanging"
                        PagerSettings-PageButtonCount="5" AllowSorting="true" 
                        EmptyDataText="Chưa cập nhật dữ liệu" AutoGenerateEditButton="False" AutoGenerateColumns="False">
                        <Columns>
                            <asp:TemplateField HeaderText="Delete">
                                <ItemTemplate>                                    
                                    <asp:HyperLink ID="HyperLink2" ToolTip="Xóa" runat="server" NavigateUrl='<%# "~/ACPanel/DeleteLogs.aspx?" + "Id=" + Eval("Id") %>'><i class="fa fa-eraser"></i></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <Columns>
                            <asp:BoundField DataField="Id" HeaderText="Id" />
                            <asp:BoundField DataField="Ten" HeaderText="Ten" />
                            <asp:BoundField DataField="Username" HeaderText="Username" />
                            <asp:BoundField DataField="ThongTin" HeaderText="ThongTin" />
                            <asp:BoundField DataField="NgayCapNhat" HeaderText="NgayCapNhat" />
                            <asp:CheckBoxField DataField="TrangThai" HeaderText="TrangThai" />
                        </Columns>
                        <AlternatingRowStyle BackColor="White" />
                        <FooterStyle BackColor="#d02027" Font-Bold="True" ForeColor="Black" />
                        <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black" />
                        <PagerStyle CssClass="phan-trang" BackColor="#428bca" ForeColor="#ffffff" HorizontalAlign="Center" />
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" VerticalAlign="Middle" Wrap="True" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <PagerSettings Mode="NumericFirstLast"></PagerSettings>
                    </asp:GridView>
                </div>
            </div>
        </div>
    </div>
    <!-- /.row -->
</asp:Content>
